<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="expires" content="0" />
        <title>光盘刻录监控与审计系统</title>
        <style type="text/css">
            body {
                margin-left: 0px;
                margin-top: 0px;
                margin-right: 0px;
                margin-bottom: 0px;
                background-image: url({{$http_url}}/image/left.gif);
            }
        </style>
        <link href="{{$http_url}}/css/css.css" rel="stylesheet" type="text/css" />

    </head>
    <script type="text/javascript">
        function list(idstr) {
            var name1 = "subtree" + idstr;
            var name2 = "img" + idstr;
            var objectobj = document.all(name1);
            var imgobj = document.all(name2);
            //alert(imgobj);
            if (objectobj.style.display == "none") {
                for (i = 1; i < 10; i++) {
                    var name3 = "img" + i;
                    var name = "subtree" + i;
                    var o = document.all(name);
                    if (o != undefined) {
                        o.style.display = "none";
                        var image = document.all(name3);
                        //alert(image);
                        image.src = "{{$http_url}}/image/ico04.gif";
                    }
                }
                objectobj.style.display = "";
                imgobj.src = "{{$http_url}}/image/ico03.gif";
            }
            else {
                objectobj.style.display = "none";
                imgobj.src = "{{$http_url}}/image/ico04.gif";
            }
        }

    </script>

    <body>
        <table width="198" border="0" cellpadding="0" cellspacing="0" class="left-table01">
            <tr>
                <TD>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="207" height="55" background="{{$http_url}}/image/nav01.gif">
                                <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="25%" rowspan="2"><img src="{{$http_url}}/image/ico02.gif" width="35" height="35" /></td>
                                        <td width="75%" height="22" class="left-font01">您好，<span >{{$username}}</span></td>
                                    </tr>
                                    <tr>
                                        <td height="22" class="left-font01">
                                            [&nbsp;<a href="{{$http_url}}/logout/" target="_top" class="left-font01">退出</a>&nbsp;]</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                     {{if $type_time}}
                     <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
                        <tr>
                            <td height="29">
                                <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="8%"><img name="img111" id="img111" src="{{$http_url}}/image/ico04.gif" width="8" height="11" /></td>
                                        <td width="92%" onClick="list(111);" style="cursor:pointer;">
                                            <span  target="mainFrame" class="left-font03" >修改过期密码</span></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table id="subtree111" style="display:none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
                        <tr>
                            <td width="9%" height="20" ><img src="{{$http_url}}/image/ico06.gif" width="8" height="12" /></td>
                            <td width="91%"><a href="{{$http_url}}/update_time/" target="mainFrame" class="left-font03">修改密码</a></td>
                        </tr>
                    </table>
                     {{else}}
                    <!--  用户菜单开始    -->
                    {{foreach from=$user_text item=menu_title}}
                    <TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
                        <tr>
                            <td height="29">
                                <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="8%"><img name="img{{$menu_title.type}}" id="img{{$menu_title.type}}" src="{{$http_url}}/image/ico04.gif" width="8" height="11" /></td>
                                        <td width="92%" onClick="list('{{$menu_title.type}}');" style="cursor:pointer;">
                                            <span  target="mainFrame" class="left-font03" >{{$menu_title.title}}</span></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </TABLE>
                    <table id="subtree{{$menu_title.type}}" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
                        {{foreach from=$menu_title.sub_title item=sub}}
                        <tr>
                            <td width="9%" height="20" ><img src="{{$http_url}}/image/ico06.gif" width="8" height="12" /></td>
                            <td width="91%"><a href="{{$http_url}}/{{$sub.url}}" target="mainFrame" class="left-font03">{{$sub.title}}</a></td>
                        </tr>
                        {{/foreach}}
                    </table>
                    {{/foreach}}
                    <!--  用户菜单结束    -->
                    {{/if}}
                </TD>
            </tr>

        </table>
    </body>
</html>
